package com.kjzy.mapper;

import com.kjzy.pojo.Devices;
import com.kjzy.pojo.Member;
import com.kjzy.pojo.Person;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface PersonMapper {
    //查找
    @Select("select * from `person` where id=#{id}")
    Person findById(int id);
    @Select("select * from `person`")
    List<Person> findAllP(Person person);
    @Update("update `person` set username=#{username},gender=#{gender},email=#{email},telephone=#{telephone},introduce=#{introduce} where id=#{id}")
    int personUpdate(Person person);
}
